package org.example.main.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.main.entity.House;
import java.util.List;

@Mapper
public interface HouseMapper {
    int insert(House house);
    int update(House house);
    int deleteById(long houseId);
    House findById(long houseId);
    List<House> findAll();
    List<House> findByLandlordId(long landlordId);
    List<House> findByStatus(String status);
    List<House> findByTitle(String title);
    List<House> findByArea(String area);
    int updateStatus(long houseId, String status);

}
